Timber\ImageHelper B

Total Complexity 89
Dependencies 9
Dependents 6
Total lines 649
Lines of code 362
Logical lines of code 210
Comment lines 245
Methods 29
Properties 1

Methods 29

Method Rating Maintainability Complexity Lines of code
_operate()
A
45 10 44
analyze_url()
A
45 9 42
find_wp_dimensions()
S
58 7 14
_get_file_path()
S
54 6 21
process_delete_generated_files()
S
58 6 14
_get_file_url()
S
56 5 18
is_svg()
S
56 5 17
is_animated_gif()
S
57 5 15
sideload_image()
S
53 4 21
resize()
S
60 4 12
is_in_theme_dir()
S
63 3 11
_delete_generated_if_image()
S
68 3 8
get_sideloaded_file_loc()
S
60 2 13
delete_generated_files()
S
60 2 13
maybe_realpath()
S
70 2 6
get_server_location()
S
65 2 8
theme_url_to_dir()
S
65 2 9
get_letterbox_file_url()
S
62 1 11
get_resize_file_url()
S
62 1 11
get_letterbox_file_path()
S
63 1 10
init()
S
67 1 7
add_relative_upload_dir_key()
S
74 1 4
generate_attachment_metadata()
S
76 1 4
delete_attachment()
S
80 1 3
img_to_webp()
S
74 1 4
img_to_jpg()
S
74 1 4
letterbox()
S
74 1 4
retina_resize()
S
74 1 4
get_resize_file_path()
S
63 1 10